package com.sinbader.xiaole.common.enums;

import java.util.HashMap;
import java.util.Map;

public class StockOperationTypes {

	public static final String Inner = "Inner";
//	public static final String Outer = "Outer";
	public static final String OuterFromUsable = "OuterFromUsable";
	public static final String OuterFromFreeze = "OuterFromFreeze";
	public static final String SaleOrderPrepare = "SaleOrderPrepare";
	public static final String SaleOrderPay = "SaleOrderPay";
	public static final String SaleOrderCancel = "SaleOrderCancel";

	private static Map<String,String> map = new HashMap();
	static {
		map.put(Inner, "入库");
//		map.put(Outer, "出库");
		map.put(OuterFromUsable, "出库（从可用库存）");
		map.put(OuterFromFreeze, "出库（从冻结库存）");
		map.put(SaleOrderPrepare, "销售订单 - 预下单");
		map.put(SaleOrderPay, "销售订单 - 支付");
		map.put(SaleOrderCancel, "销售订单 - 取消");
	}

	public static String getTitle(String code) {
		return map.get(code);
	}

}